package person.wend.springbootlearnexample.config;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.function.ServerRequest;
import org.springframework.web.servlet.function.ServerResponse;

@Component
public class MyUserHandler {

    public ServerResponse getUser(ServerRequest request) {
        System.out.println("request = " + request);
        return ServerResponse.ok().body("getUser");
    }

    public ServerResponse getUserCustomers(ServerRequest request) {
        System.out.println("request = " + request);
        return ServerResponse.ok().body("getUserCustomers");

    }

    public ServerResponse deleteUser(ServerRequest request) {
        System.out.println("request = " + request);
        return ServerResponse.ok().body("deleteUser");
    }

}